#基于的基础镜像
FROM python:3.8.2
FROM python:3.8-buster as builder-image

### install requirements
COPY requirements.txt .
RUN pip3 install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple


FROM python:3.8-slim-buster

COPY --from=builder-image /usr/local/bin /usr/local/bin
COPY --from=builder-image /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages

WORKDIR /opt/code

COPY . .

CMD ["pyton", "prompt_controller.py"]